#include<stdio.h>


int main()
{
	char buf[1000]={};

	FILE *fp = fopen("1.txt","r+");
	if(!fp){
		perror("fopen");
		return -1;

	}

	//read a block  51*10
	int res = fread(buf,51,10,fp);
	printf("read dao le %d ge shu ju. words are :  %s",res,buf);

	FILE *fp1 = fopen("2.txt","w");

	if(!fp1){
		perror("fopen");
		return -1;
	}

	res = fwrite(buf,51,10,fp1);
	printf("write %d ge data\n",res);

	fclose(fp);
	fclose(fp1);

	return 0;




}